package io.adrainty.bolee.trade.models.bo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.adrainty.bolee.framework.commons.basic.BaseBO;
import io.adrainty.bolee.trade.models.valobj.SignStateEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * <p>SignContractBO</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description 签约合同
 * @since 2025/8/28 11:27:48
 */

@Data
@Schema(description = "签约合同")
@TableName("tab_sign_contract")
@EqualsAndHashCode(callSuper = true)
public class SignContractBO extends BaseBO {
    
    @Serial
    private static final long serialVersionUID = 7583207219935890364L;

    @Schema(description = "合同编号:关联业务")
    private String contractNo;

    @Schema(description = "商户签约号")
    private String externalAgreementNo;

    @Schema(description = "支付宝签约号:关联支付")
    private String agreementNo;

    @Schema(description = "签约状态：1. TEMP：暂存，协议未生效过；2. NORMAL：正常；3. STOP：暂停")
    private SignStateEnum signState;

    @Schema(description = "支付渠道【支付宝、微信】")
    private String tradeChannel;

    @Schema(description = "周期类型")
    private String rulePeriodType;

    @Schema(description = "周期数")
    private Long rulePeriod;

    @Schema(description = "总金额")
    private BigDecimal ruleTotalAmount;

    @Schema(description = "总金额")
    private BigDecimal ruleSingleAmount;

    @Schema(description = "扣款总次数")
    private Long ruleTotalPayments;
    
}
